﻿using System;

namespace ParticlePlayground
{
	// Token: 0x02000147 RID: 327
	[Serializable]
	public class SerializedFrame
	{
		// Token: 0x060006F0 RID: 1776 RVA: 0x000292B8 File Offset: 0x000274B8
		public virtual RecordedFrame CloneAsRecordedFrame()
		{
			return new RecordedFrame
			{
				particles = this.CloneAsPlaybackParticles(),
				keyframeInterval = this.keyframeInterval,
				timeStamp = this.timeStamp,
				frameType = this.frameType
			};
		}

		// Token: 0x060006F1 RID: 1777 RVA: 0x000292FC File Offset: 0x000274FC
		public virtual PlaybackParticle[] CloneAsPlaybackParticles()
		{
			PlaybackParticle[] array = new PlaybackParticle[this.serializedParticles.Length];
			for (int i = 0; i < this.serializedParticles.Length; i++)
			{
				array[i] = this.serializedParticles[i].CloneAsPlaybackParticle();
			}
			return array;
		}

		// Token: 0x040006FF RID: 1791
		public SerializedParticle[] serializedParticles;

		// Token: 0x04000700 RID: 1792
		public float timeStamp;

		// Token: 0x04000701 RID: 1793
		public float keyframeInterval;

		// Token: 0x04000702 RID: 1794
		public FrameType frameType = FrameType.Middle;
	}
}
